package cn.tedu._05weibo.mapper;

import cn.tedu._05weibo.pojo.entity.User;
import cn.tedu._05weibo.pojo.vo.UserVO;

public interface UserMapper {
    /**
     * 1.注册功能:查询接口
     *   SELECT id FROM user WHERE username=#{username}
     *   1.1 针对注册功能: id
     *   1.2 针对登录功能: password,nickname
     *       SELECT password FROM user WHERE username=#{username}
     *
     */
    UserVO selectByUsername(String username);

    /**
     * 2.注册功能:插入接口
     */
    int insertUser(User user);
}










